package demo5;

/**
 * ClassName Fish
 * Description TODO
 * Author Yanyan
 * Date 2025/11/13 14:08
 * Version 1.0
 */
public class Fish extends Animal implements ISwimmable{
    public Fish(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name + "吃鱼食!");
    }

    @Override
    public void swim() {
        System.out.println(name + "使用鱼鳍游泳！");
    }
}
